<style>
div.form label {
    float: left;
    font-weight: bold;
    margin: 0 5px 3px 0;
    overflow: hidden;
    text-align: left;
    width: 150px;
}
div.form label.labelForRadio {
	display:inline-block;
	width:50px;
	float:none;
	margin:0 auto;
}
</style>
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'news-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'content'); ?>
		<?php
		$this->widget('application.extensions.kindeditor4.KindEditorWidget',
				array('model' => $model,'attribute' => 'content',
					'htmlOptions'=>array('style' => 'width:100px;'),
					'miniMode'=>true,'editorname'=>'detail_editor'));
		?>
		<?php echo $form->error($model,'content'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'hot'); ?>
		<?php echo $form->textField($model,'hot'); ?>
		<?php echo $form->error($model,'hot'); ?>
	</div>	

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->